<?php
/**
 * ClassName:测试
 * @auditor:leijunxiang
 * @time 2025/4/8 9:02
 */

namespace app\controller;

use app\factory\Factory;
use app\factory\model\ResponseAgreement;
use app\modelOperate\freightForward\ChannelDetailOpe;
use app\tool\util\ExcelInput;
use app\tool\word\ExcelInputHandle;
use think\facade\Log;

class TestController
{
    public function testExcelInput()
    {
//        $obj = app(ExcelInput::class);
//        $obj->excelLoad(__DIR__ . "/../tool/util/1.xlsx");
//        $handle = app(ExcelInputHandle::class);
//        $response = app(ResponseAgreement::class);
//        //开始导入(文件路径,货代id,渠道id)
//        $flag = $handle->startInput(__DIR__ . "/../tool/util/1.xlsx","67f77effcb3f7","67f8b268d5009");
//        if(!$flag){
//            $response->setErrCode($handle->getErrCode());
//            $response->setErrMsg($handle->getErrMsg());
//        }else{
//            $response->setErrCode(SUCCESS);
//            $response->setErrMsg("导入数据成功");
//        }
        phpinfo();
    }
}